var menu = {

    cancel : function (menu_id) {
        document.location.href = SITE_URL + 'admin/menus.menus.child_lists/'+menu_id;
    },
    
    change_menu_image : function(img){
        $('menu_image').innerHTML = '<img src="'+img+'" width="16" height="16" />';
    },
    
    cmsmenu_cancel : function(menu_id){
        document.location.href = SITE_URL + 'admin/menus.cms_menus/'+menu_id;
    },
    
    del : function(id) {
        if(confirm('Are you sure to delete this Menu Item?'))
            document.location.href = SITE_URL + 'admin/menus.menus.delete/' + id;
    }
    
}
